package com.miyuan.view.machine;

import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.miyuan.R;
import com.miyuan.base.BaseActivity;

public class MachineGoodsListActivity extends BaseActivity {
    MachineGoodsListFragment machineGoodsListFragment;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        setLayout(R.layout.fragment_root);
        super.onCreate(savedInstanceState);

        FragmentManager fm = getFragmentManager();
        FragmentTransaction transaction = fm.beginTransaction();
        machineGoodsListFragment = MachineGoodsListFragment.newInstance(getIntent().getStringExtra("vendorId"),getIntent().getStringExtra("controlNumber"));
        transaction.replace(R.id.root_fragment, machineGoodsListFragment);
        transaction.commit();
    }
}
